<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function Star(uname, age) {
        ;(this.uname = uname), (this.age = age)
      }
      Star.prototype.sing = function () {
        console.log('唱歌')
      }
      function Object() {}
      const ldh = new Star('刘德华', '45', '忘情水')
      console.log(Star.prototype.constructor === Star) 

      console.log(ldh)

      console.log(Star.prototype)
      console.log(ldh.__proto__ === Star.prototype) 

      console.log(ldh.__proto__.constructor === Star) 

      console.log(ldh.__proto__.__proto__ === Object.prototype) 

      console.log(ldh.__proto__.__proto__.constructor === Object) 

      console.log(Object.prototype === Object.prototype)

      console.log(Star.prototype === Object.prototype) 

      console.log(ldh.__proto__.__proto__.__proto__) 
    </script>
  </body>
</html>
